gtk: Add GtkEventControllerScroll
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 15 Sep 2017 11:22:57 +0000 (13:22 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 16 Jul 2018 13:43:43 +0000 (15:43 +0200)
commit747be0f4999bc9e855cc1f6a4b98ccd371835d49
tree4a3bc8177ed0c6937626c7421f7a5fda0cc0b5d5
parent9008f7702dff689ce48f2cfa7ce42db099e4ef0c
gtk: Add GtkEventControllerScroll

This is a GtkEventController implementation to handle mouse
scrolling. It handles both smooth and discrete events and
offers a way for callers to tell their preference too, so
smooth events shall be accumulated and coalesced on request.

On capable devices, it can also emit ::scroll-begin and
::scroll-end enclosing all ::scroll events for a scroll
operation.

It also has builtin kinetic scrolling capabilities, reporting
the initial velocity for both axes after ::scroll-end if
requested.
gtk/Makefile.am
gtk/gtk.h
gtk/gtkeventcontrollerscroll.c [new file with mode: 0644]
gtk/gtkeventcontrollerscroll.h [new file with mode: 0644]